@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/factoryVideoTime/factoryVideoTime_add.js"]}){
<form id="factoryVideoTimeForm" lay-filter="factoryVideoTimeForm" class="layui-form model-form layui-row" >
    <input name="id" type="hidden"/>
    <div class="layui-form-item layui">
        <label class="layui-form-label">农场摄像头<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="factoryVideoId" name="factoryVideoId" value="${factoryVideo.id}"  type="hidden" class="layui-input" lay-verify="required" required/>
            <input id="factoryVideoName" name="factoryVideoName" value="${factoryVideo.title}" placeholder="无摄像头" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">此视频播放时间段<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="showTime" name="showTime" placeholder="请输入此视频播放时间段" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">链接<span style="color: red;">*</span></label>
        <div class="layui-input-inline">
            <input id="url" name="url" placeholder="上传视频后自动生成链接" type="text" class="layui-input" lay-verify="required" required/>
        </div>
        <div class="layui-input-inline">
            <button class="layui-btn" type="button" id="videoBtn"  type="button" lay-submit>上传视频</button>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block">
            <input type="radio"  name="status" lay-filter="status" value="1"  checked  title="显示" />
            <input type="radio" name="status" lay-filter="status" value="0"    title="隐藏" />
        </div>
    </div>
    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">关闭</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>
</form>
@}